package bz.ziro.kanbe.controller.mng.template;

import java.util.logging.Logger;
import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

import bz.ziro.kanbe.dao.TemplateDao;

/**
 * テンプレートの削除
 * @author Administrator
 */
public class DeleteController extends Controller {

    @SuppressWarnings("unused")
    private static final Logger logger = Logger.getLogger(DeleteController.class.getName());

    @Override
    public Navigation run() {

        String siteKeyBuf = sessionScope("siteKey");
        String keyBuf = param("templateKey");
        TemplateDao.delete(Long.valueOf(siteKeyBuf),Long.valueOf(keyBuf));
        return null;
    }
}
